# -*- coding: utf-8 -*-

"""
DateTime   : 2020/12/17 21:56
Author     : ZhangYafei
Description: 
"""
import sys

print(sys.getdefaultencoding()) # utf-8

with open('src_file.ttx', mode='r', encoding='gbk') as f1:
    content = f1.read()
    with open('dest_file.txt', mode='w', encoding='utf-8') as f2:
        f2.write(content)
    print('文件复制成功')

